using System;
using LuaInterface;

namespace SharpWind.Resources
{
	public class Script : Resource
	{
		private string scriptFile = string.Empty;
		
		private Lua lua = null;
		
		internal Script()
		{
			this.lua = Engine.Instance.Content.Scripts.Lua;
		}
		
		public object[] Execute()
		{
			return this.lua.DoFile( this.scriptFile );
		}
		
		internal string ScriptFile
		{
			set
			{
				this.scriptFile = value;
			}
		}
	}
}
